<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="include :: appHeader"></head>
<body ontouchstart>
<!--首页 tabbar -->
<div class="weui-tab">
    <div class="weui-tab__bd">
        <div id="tab5" class="weui-tab__bd-item weui-tab__bd-item--active">
            <h1 th:if="${#lists.isEmpty(hisCheck)}" style="margin-top: 64px;text-align: center">查无记录</h1>
            <div id="his-apply-list" class='demos-content-padded' th:unless="${#lists.isEmpty(hisCheck)}">
                <div class="weui-form-preview__hd" th:each="ha : ${hisCheck}">
                    <div class="weui-form-preview__item">
                        <b class="weui-form-preview__label">转序类型</b>
                        <b class="weui-form-preview__item" th:text="${ha.tranType == 1?'生产转序':'装配转序'}"></b>
                    </div>
                    <div class="weui-form-preview__item">
                        <b class="weui-form-preview__label">生产令号</b>
                        <b class="weui-form-preview__item" th:text="${ha.prodNo}"></b>
                    </div>
                    <div class="weui-form-preview__item">
                        <b class="weui-form-preview__label">图号</b>
                        <b class="weui-form-preview__item" th:text="${ha.drawNo}"></b>
                    </div>
                    <div class="weui-form-preview__item">
                        <b class="weui-form-preview__label">零件名称</b>
                        <b class="weui-form-preview__item" th:text="${ha.drawName}"></b>
                    </div>
                    <div class="weui-form-preview__item">
                        <label class="weui-form-preview__label">工艺路线</label>
                        <b class="weui-form-preview__item" th:text="${ha.route}"></b>
                    </div>
                    <div class="weui-form-preview__item">
                        <label class="weui-form-preview__label">申请数量</label>
                        <b class="weui-form-preview__item" th:text="${ha.num}"></b>
                    </div>
                    <div class="weui-form-preview__item">
                        <label class="weui-form-preview__label">状态</label>
                        <b class="weui-form-preview__item"
                           th:text="${T(com.zw.transition.util.ServiceUtil).trans(ha.status)}"></b>
                    </div>
                    <div class="weui-form-preview__ft" th:if="${ha.status == 2}">
                        <button type="button" class="weui-form-preview__btn weui-form-preview__btn_primary"
                                th:onclick="|cancelCheck(${ha.id},${ha.tranType})|">撤销质检
                        </button>
                    </div>
                </div>
            </div>
            <div style="height: 70px"></div>
        </div>
    </div>

    <div class="weui-tabbar">
        <a th:href="@{/index}" class="weui-tabbar__item">
            <div class="weui-tabbar__icon">
                <img th:src="@{/img/me.png}" alt="">
            </div>
            <p class="weui-tabbar__label">我的信息</p>
        </a>
        <a th:if="${session.user.role == 1}" th:href="@{/hisApply}" class="weui-tabbar__item">
            <div class="weui-tabbar__icon">
                <img th:src="@{/img/his_apply.png}" alt="">
            </div>
            <p class="weui-tabbar__label">历史申请</p>
        </a>
        <a th:if="${session.user.role == 1}" th:href="@{/hisRec}" class="weui-tabbar__item">
            <div class="weui-tabbar__icon">
                <img th:src="@{/img/his_rec.png}" alt="">
            </div>
            <p class="weui-tabbar__label">历史接收</p>
        </a>
        <a th:if="${session.user.role == 2}" th:href="@{/hisCheck}" class="weui-tabbar__item  weui-bar__item--on">
            <div class="weui-tabbar__icon">
                <img th:src="@{/img/his_check.png}" alt="">
            </div>
            <p class="weui-tabbar__label">历史质检</p>
        </a>
    </div>
</div>
<div th:include="include :: appFooter"></div>
<script th:src="@{/js/app-index.js}"></script>
</body>
</html>